package com.sa.user.api.feignapi;

import com.sa.user.api.dto.UserPointsDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Architecture Station
 * @version 1.0
 */
@FeignClient(name = "user-service")
public interface UserPointsApi {

    // 用户积累累加5
    @PutMapping("/api/userPoints")
    public ResponseEntity accumulateUserPoints(@RequestBody UserPointsDTO userPointsDTO);

}
